package com.petshop.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @TableName tb_voucher
 */
@TableName(value = "tb_voucher")
@Data
public class Voucher {
    @TableId
    private Long id;

    private Long shopId;

    private String title;

    private String subTitle;

    private String rules;

    private Long payValue;

    private Long actualValue;

    private Integer type;

    private Integer status;
    /**
     * 秒杀券的库存
     */
    @TableField(exist = false)
    private Integer stock;

    /**
     * 秒杀券的生效时间
     */
    @TableField(exist = false)
    private LocalDateTime beginTime;

    /**
     * 秒杀券的失效时间
     */
    @TableField(exist = false)
    private LocalDateTime endTime;

    private Date createTime;

    private Date updateTime;
}